package cn.com.business.calculate;

public class SecondThreeCalculate extends AbstractCalculate {

	public SecondThreeCalculate(AbstractCalculate calculate) {
		super(calculate);
	}

	@Override
	public void calculate() {
			if ((super.getLeftIntegral() >= 80 * 500
			&& super.getRightIntegral() >= 80 * 500) || (super.getLeftIntegral() >= 54 * 500
					&& super.getRightIntegral() >= 106 * 500) || (super.getLeftIntegral() >= 106 * 500
							&& super.getRightIntegral() >= 54 * 500)){
			super.setMoney(super.getMoney() + 3000);
			super.setCalculateProcess(7);
			super.next();
		}else{
			super.setDescription("结算第二轮第三阶段：左右美容院第一轮结算完剩余销售套数不足160套或者左右套数达不到比例的要求");
		}

	}

}
